package xyz.bali16.module.sign.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import xyz.bali16.module.sign.config.LocalDateTimeConverter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@ApiModel("添加签到事件参数")
public class SignEventAddParam {

    @ApiModelProperty(name = "name", value = "签到事件名字", required = true)
    @NotEmpty(message = "签到事件名字不能为空")
    private String name;
    @ApiModelProperty(name = "status", value = "签到事件开始时间", required = true)
    @NotEmpty(message = "签到事件开始时间不能为空")
    private String startTime;
    @ApiModelProperty(name = "orderNum", value = "签到事件结束时间", required = true)
    @NotEmpty(message = "签到事件结束时间不能为空")
    private String endTime;

    @ApiModelProperty(name = "score", value = "奖励积分", required = true)
    @NotEmpty(message = "奖励积分不能为空")
    private Integer score;
}
